#!/usr/bin/env bash
remoteDir='/home/kjcx/frontend'
localDir=$PWD'/dist'

sshPort='22'
sshIP='10.1.100.8'
sshUser='root'
vite build --mode test
rm dist/.DS_Store
rsync -avrz --delete $localDir/* $sshUser@$sshIP:$remoteDir
echo "发布成功"

# znjt#123



